// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Loading from './components/loading'
import store from './store/store'
import axios from 'axios'
import VueAxios from 'vue-axios'
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
import AMap from 'vue-amap';
import 'vue-amap/dist/index.js'
import $ from 'jquery'
import VuePreview from 'vue-preview'
import 'video.js/dist/video-js.css'
import 'vue-video-player/src/custom-theme.css'
import VueVideoPlayer from 'vue-video-player'

Vue.use(VuePreview);
Vue.use(AMap);
Vue.use(VueVideoPlayer)


import './assets/less/app.less'

Vue.use(VueAxios, axios);
Vue.use(Loading);
Vue.use(Mint);
/* eslint-disable no-new */

AMap.initAMapApiLoader({
  key: 'fcf49facc3528221c40a7cca521446bf',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor']
});

//实例化vue对象
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {App}
});

